package util;

import client.gui.util.Side;
import client.gui.util.Ticket;
import client.gui.util.Type;

public class MessageCreator {
	
	public static String cancelMessage(String referenceId) {
		return "referenceId=" + referenceId + ";msgType=cancelOrder";
	}
	
	public static String orderModelElement(String referenceId, int amount) {
		return "referenceId=" + referenceId + ";amount=" + amount;
	}
	
	public static String newOrderMessage(int clientReferenceId, Ticket ticket, Type type, Side side, String amount, String price) {
		return "referenceId=" + clientReferenceId + ";msgType=newOrder;ticket=" + ticket.getType() + ";type=" 
				+ type + ";side=" + side + ";amount=" + amount + ";price=" + price;
	}

}
